package config

type MongoCfg struct {
	Addresses  []string `yaml:"address"`
	ReplicaSet string   `yaml:"replica_set"`
	User       string   `yaml:"user"`
	Password   string   `yaml:"password"`
	DBName     string   `yaml:"db_name"`
}

func MongoCfgLocal() MongoCfg {
	cfg := MongoCfg{}
	cfg.Addresses = []string{"localhost:27017", "localhost:27018", "localhost:27019"}
	cfg.ReplicaSet = "rs1"
	cfg.User = "rms"
	cfg.Password = "rms"
	cfg.DBName = "rms"
	return cfg
}
